package org.mall.modules.shoptype.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.mall.modules.shoptype.entity.ShopType;
import org.mall.modules.shoptype.entity.ShopTypeNameDTO;

import java.util.List;

/**
 * @Description: 商品类目/商户类型
 * @Author: jeecg-boot
 * @Date:   2019-10-30
 * @Version: V1.0
 */
public interface IShopTypeService extends IService<ShopType> {

    IPage<ShopType> list(Page<ShopType> page, QueryWrapper<ShopType> queryWrapper);

    List<ShopType> getShopTypeList(Integer type);

    List<ShopType> getShopTypeListByName(String name);


    List<ShopType> getShopTypeListByTypeAndLevel(Integer type, Integer level);

    List<ShopType> getShopTypeListByParentId(Integer id);

    List<ShopType> getShopTypeListOfNoTree(Integer i);

    List<ShopType> getGoodsTypeListByShopId(String shopId);

    List<ShopType> getGoodsTypeListOfFirstLevel();

    List<ShopTypeNameDTO>  getGoodSTypeNameList(List<String> shopids);
}
